const LineLossFillReducer = (prevState = {
  updateDate: "",
  luckySheetOption: "",
  month: "",
  unFillUser: []
}, action) => {
  let newState = { ...prevState }
  switch (action.type) {

    // 修改提交日期
    case "change-updateDate":
      newState.updateDate = action.payload
      return newState

    // 修改表格
    case "change-luckySheetOption":
      newState.luckySheetOption = action.payload
      return newState

    // 修改月份
    case "change-month":
      newState.month = action.payload
      return newState

    // 修改当月未填报的人名单
    case "change-unFillUser":
      newState.unFillUser = action.payload
      return newState
    default:
      return prevState
  }
}

export default LineLossFillReducer